package cz.muni.fi.pa165.musiclibrary.musiclibraryws;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.ws.WebFault;

/**
 *
 * @author Maros Kucbel
 * @date 2012-12-06T15:48:23+0100
 */
@WebFault
@XmlAccessorType(XmlAccessType.FIELD)
public class MusicLibraryException extends RuntimeException {
    
    private String reason;
    
    public MusicLibraryException(String message, String reason) {
        super(message);
        this.reason = reason;
    }
    
    public MusicLibraryException(String reason) {
        this.reason = reason;
    }

    public String getReason() {
        return this.reason;
    }
    
}